#define _CRT_SECURE_NO_WARNINGS 1

#include"sort.h"

void TestQuickSort()
{
    //int a[] = { 9,8,7,6,5,4,3,2,1,0 };
    int a[] = { 3,0,9,1,5,2,4,6,8,7 };
    int len = sizeof(a) / sizeof(a[0]);

    PrintArray(a, len);

    QuickSort(a, 0, len - 1);

    PrintArray(a, len);
}

void TestSelectSort()
{
    int a[] = { 9,8,7,6,5,4,3,2,1,0 };
    int len = sizeof(a) / sizeof(a[0]);

    PrintArray(a, len);

    SelectSort(a, len);

    PrintArray(a, len);
}

void TestHeapSort()
{
    int a[] = {3,0,9,1,5,2,4,6,8,7};
    int len = sizeof(a) / sizeof(a[0]);

    PrintArray(a, len);

    HeapSort(a, len);

    PrintArray(a, len);
}
int main()
{
    TestQuickSort();

    return 0;
}